package com.wicket.okrframework.integration.dto;

import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc BehaviorTypeMenuDto
 * @使用场景
 */
@Data
public class BehaviorTypeMenuDto extends BaseDto implements Serializable {

  /**
   * 行为类型ID
   */
  @ApiModelProperty("行为类型ID")
  private String behaviorTypeId;

  /**
   * 行为类型编码
   */
  @ApiModelProperty("行为类型编码")
  private String behaviorTypeCode;

  /**
   * 行为类型名称
   */
  @ApiModelProperty("行为类型名称")
  private String behaviorTypeName;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    BehaviorTypeMenuDto that = (BehaviorTypeMenuDto) o;
    return (
      behaviorTypeId == that.behaviorTypeId &&
      behaviorTypeCode == that.behaviorTypeCode &&
      behaviorTypeName == that.behaviorTypeName
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      behaviorTypeId,
      behaviorTypeCode,
      behaviorTypeName
    );
  }

}
